﻿using System;
using System.ComponentModel.Composition;
using System.Threading;
using System.Windows;
using System.Windows.Input;
using System.Windows.Threading;

namespace PefStudio.Windows
{
    [Export(MainWindow.RibbonTabsContract, typeof(IRibbonTabItem))]
    partial class InsertTabItem : AbstractRibbonTabItem
    {
        public const string Contract = "Insert";

        public InsertTabItem()
        {
            BaseContract = Contract;

            Header = "Insert";
            ID = "Insert";

            InitializeComponent();
        }
    }

    [Export(InsertTabItem.Contract, typeof(IRibbonGroupBox))]
    public partial class LLRibbonGroupBox : AbstractRibbonGroupBox
    {
        public const string Contract = "Insert.LL";

        public LLRibbonGroupBox()
        {
            BaseContract = Contract;

            Header = "LL";
            ID = "LL";

            InitializeComponent();
        }

        private readonly string[] _fontsData = new string[] { "Tahoma", "Segoe UI", "Arial", "Courier New", "Symbol" };
        public string[] FontsData
        {
            get { return _fontsData; }
        }

        private void OnEnlargeClick(object sender, RoutedEventArgs e)
        {
            inRibbonGallery.Enlarge();
        }

        private void OnReduceClick(object sender, RoutedEventArgs e)
        {
            inRibbonGallery.Reduce();
        }
    }
}
